package xyz.wanwanwan.www.hrm.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import xyz.wanwanwan.www.hrm.domain.CourseMarket;
import xyz.wanwanwan.www.hrm.feign.fallback.CourseMarketClientFallbackFactory;

@FeignClient(value = "course-server",fallbackFactory = CourseMarketClientFallbackFactory.class)
public interface CourseMarketClient {
    //获取用户
    @RequestMapping(value = "/courseMarket/{id}",method = RequestMethod.GET)
    CourseMarket get(@PathVariable("id")Long id);
}
